package io.terminus.spzx.user.mapper;

import io.terminus.spzx.model.entity.user.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 会员用户Mybatis Mapper
 * @Date 2024-11-17
 */
@Mapper
public interface UserInfoMapper {

    /**
     * 保存会员用户信息
     *
     * @param userInfo 会员用户
     */
    void save(UserInfo userInfo);

    /**
     * 根据用户名查询会员用户
     *
     * @param username 用户名
     * @return 会员用户
     */
    UserInfo getByUsername(@Param("username") String username);
}
